#include <string>
#include <iostream>
using namespace std;

class MyInteger
{
private:
    int value;
public:
    MyInteger(int value=0) : value(value) {}
    int get() const { return this->value; }
    int addition(const MyInteger& value2)
    {
        return this->value + value2.value;
    }
    int parseInt(const string& str)
    {
        int result=0;
        for(char c : str)
            result=result*10+(c-'0');
        this->value=result;
        return this->value;
    }
};

int main()
{
    MyInteger mi1;
    MyInteger mi2(1);
    cout<<mi1.get()<<endl;
    cout<<mi1.addition(mi2)<<endl;
    cout<<mi1.parseInt("1234")<<endl;
}
